package controllers;

import play.*;
import play.mvc.*;

import play.mvc.Http.Request;
import views.html.*;

public class Application extends Controller {
 static int i = 0;
	public static Result index() {
		
		 return ok("Hello worlde");
		}
	public static Result hello(String name) {
	      return ok("Hello " + name + "!");
	  }
	public static Result dupa(String test) {
	    i++;
		return ok(index.render(test,i+""));
	  }
	public static Result game(String command) {
		
		return ok(gamemain.render(command));
	}
	
	///
	
	
	public static Result myAction() {
			return ok("test");
		}
	
	public static Result submit() {
		//++i;
		return redirect("localhost:9000/dupa/aaa");
		}

		private static Result remove(Request request) {
		  // TODO
		  return ok("implement your business here");
		}

		private static Result edit(Request request) {
		  // TODO
		  return ok("implement your business here");
		}
}
